home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1987-07-15 | 2.0 KB | [TEXT/MPS ] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| ZX81 Sinclair BASIC (image/sinclairBASIC)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Wed Jul 15 11:16:47 1987, modified Wed Jul 15 11:16:47 1987, creator 'MPS ', type ASCII, 1446 bytes "recvPort.p" , at 0x626 382 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 72 65 63 76 50 6f | 72 74 2e 70 00 00 00 00 |..recvPo|rt.p....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 05 a6 00 | 00 01 7e 9d 21 4d 5f 9d |........|..~.!M_.|
|00000060| 21 4d 5f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |!M_.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 cc 7c 00 00 |........|.....|..|
|00000080| 7b 24 52 2d 7d 0d 0d 28 | 2a 0d 09 72 65 63 76 53 |{$R-}..(|*..recvS|
|00000090| 50 6f 72 74 28 70 6f 72 | 74 20 6e 75 6d 62 65 72 |Port(por|t number|
|000000a0| 29 20 2d 2d 20 52 65 74 | 75 72 6e 20 61 20 63 68 |) -- Ret|urn a ch|
|000000b0| 61 72 61 63 74 65 72 20 | 66 72 6f 6d 20 74 68 65 |aracter |from the|
|000000c0| 20 73 65 72 69 61 6c 20 | 70 6f 72 74 2e 0d 0d 09 | serial |port....|
|000000d0| 54 6f 20 63 6f 6d 70 69 | 6c 65 20 61 6e 64 20 6c |To compi|le and l|
|000000e0| 69 6e 6b 20 74 68 69 73 | 20 66 69 6c 65 20 75 73 |ink this| file us|
|000000f0| 69 6e 67 20 4d 61 63 69 | 6e 74 6f 73 68 20 50 72 |ing Maci|ntosh Pr|
|00000100| 6f 67 72 61 6d 6d 65 72 | 27 73 20 57 6f 72 6b 73 |ogrammer|'s Works|
|00000110| 68 6f 70 2c 0d 0d 09 70 | 61 73 63 61 6c 20 2d 77 |hop,...p|ascal -w|
|00000120| 20 72 65 63 76 50 6f 72 | 74 2e 70 0d 09 6c 69 6e | recvPor|t.p..lin|
|00000130| 6b 20 2d 6d 20 45 4e 54 | 52 59 50 4f 49 4e 54 20 |k -m ENT|RYPOINT |
|00000140| 2d 6f 20 48 79 70 65 72 | 43 6f 6d 6d 61 6e 64 73 |-o Hyper|Commands|
|00000150| 20 2d 72 74 20 58 46 43 | 4e 3d 31 20 2d 73 6e 20 | -rt XFC|N=1 -sn |
|00000160| 4d 61 69 6e 3d 72 65 63 | 76 53 50 6f 72 74 20 72 |Main=rec|vSPort r|
|00000170| 65 63 76 50 6f 72 74 2e | 70 2e 6f 20 22 7b 4d 50 |ecvPort.|p.o "{MP|
|00000180| 57 7d 22 4c 69 62 72 61 | 72 69 65 73 3a 69 6e 74 |W}"Libra|ries:int|
|00000190| 65 72 66 61 63 65 2e 6f | 0d 09 0d 2a 29 0d 0d 7b |erface.o|...*)..{|
|000001a0| 24 53 20 72 65 63 76 53 | 50 6f 72 74 20 7d 20 09 |$S recvS|Port } .|
|000001b0| 7b 20 53 65 67 6d 65 6e | 74 20 6e 61 6d 65 20 6d |{ Segmen|t name m|
|000001c0| 75 73 74 20 62 65 20 74 | 68 65 20 73 61 6d 65 20 |ust be t|he same |
|000001d0| 61 73 20 74 68 65 20 63 | 6f 6d 6d 61 6e 64 20 6e |as the c|ommand n|
|000001e0| 61 6d 65 2e 20 7d 0d 0d | 75 6e 69 74 20 44 75 6d |ame. }..|unit Dum|
|000001f0| 6d 79 55 6e 69 74 3b 0d | 0d 69 6e 74 65 72 66 61 |myUnit;.|.interfa|
|00000200| 63 65 0d 0d 75 73 65 73 | 20 4d 65 6d 54 79 70 65 |ce..uses| MemType|
|00000210| 73 2c 20 51 75 69 63 6b | 44 72 61 77 2c 20 4f 53 |s, Quick|Draw, OS|
|00000220| 49 6e 74 66 2c 20 48 79 | 70 65 72 58 43 6d 64 3b |Intf, Hy|perXCmd;|
|00000230| 0d 0d 70 72 6f 63 65 64 | 75 72 65 20 45 6e 74 72 |..proced|ure Entr|
|00000240| 79 50 6f 69 6e 74 28 70 | 61 72 61 6d 50 74 72 3a |yPoint(p|aramPtr:|
|00000250| 20 58 43 6d 64 50 74 72 | 29 3b 0d 09 0d 69 6d 70 | XCmdPtr|);...imp|
|00000260| 6c 65 6d 65 6e 74 61 74 | 69 6f 6e 0d 0d 74 79 70 |lementat|ion..typ|
|00000270| 65 0d 0d 53 74 72 33 31 | 20 3d 20 53 74 72 69 6e |e..Str31| = Strin|
|00000280| 67 5b 33 31 5d 3b 0d 0d | 70 72 6f 63 65 64 75 72 |g[31];..|procedur|
|00000290| 65 20 72 65 63 76 53 50 | 6f 72 74 28 70 61 72 61 |e recvSP|ort(para|
|000002a0| 6d 50 74 72 3a 20 58 43 | 6d 64 50 74 72 29 3b 20 |mPtr: XC|mdPtr); |
|000002b0| 66 6f 72 77 61 72 64 3b | 0d 0d 70 72 6f 63 65 64 |forward;|..proced|
|000002c0| 75 72 65 20 45 6e 74 72 | 79 50 6f 69 6e 74 28 70 |ure Entr|yPoint(p|
|000002d0| 61 72 61 6d 50 74 72 3a | 20 58 43 6d 64 50 74 72 |aramPtr:| XCmdPtr|
|000002e0| 29 3b 0d 0d 09 62 65 67 | 69 6e 0d 09 09 72 65 63 |);...beg|in...rec|
|000002f0| 76 53 50 6f 72 74 28 70 | 61 72 61 6d 50 74 72 29 |vSPort(p|aramPtr)|
|00000300| 3b 0d 09 65 6e 64 3b 0d | 0d 70 72 6f 63 65 64 75 |;..end;.|.procedu|
|00000310| 72 65 20 72 65 63 76 53 | 50 6f 72 74 28 70 61 72 |re recvS|Port(par|
|00000320| 61 6d 50 74 72 3a 20 58 | 43 6d 64 50 74 72 29 3b |amPtr: X|CmdPtr);|
|00000330| 0d 0d 09 76 61 72 20 70 | 6f 72 74 4e 75 6d 62 65 |...var p|ortNumbe|
|00000340| 72 3a 20 69 6e 74 65 67 | 65 72 3b 0d 09 09 69 6e |r: integ|er;...in|
|00000350| 50 6f 72 74 3a 20 69 6e | 74 65 67 65 72 3b 0d 09 |Port: in|teger;..|
|00000360| 09 73 74 72 3a 20 53 74 | 72 32 35 35 3b 0d 09 09 |.str: St|r255;...|
|00000370| 6c 3a 20 6c 6f 6e 67 49 | 6e 74 3b 0d 0d 09 7b 24 |l: longI|nt;...{$|
|00000380| 49 20 58 43 6d 64 47 6c | 75 65 2e 69 6e 63 7d 0d |I XCmdGl|ue.inc}.|
|00000390| 0d 09 70 72 6f 63 65 64 | 75 72 65 20 46 61 69 6c |..proced|ure Fail|
|000003a0| 28 65 72 72 4d 73 67 3a | 20 53 74 72 32 35 35 29 |(errMsg:| Str255)|
|000003b0| 3b 20 7b 20 73 65 74 20 | 74 68 65 52 65 73 75 6c |; { set |theResul|
|000003c0| 74 20 61 6e 64 20 71 75 | 69 74 20 7d 0d 09 09 62 |t and qu|it }...b|
|000003d0| 65 67 69 6e 0d 09 09 09 | 70 61 72 61 6d 50 74 72 |egin....|paramPtr|
|000003e0| 5e 2e 72 65 74 75 72 6e | 56 61 6c 75 65 20 3a 3d |^.return|Value :=|
|000003f0| 20 50 61 73 54 6f 5a 65 | 72 6f 28 65 72 72 4d 73 | PasToZe|ro(errMs|
|00000400| 67 29 3b 0d 09 09 09 65 | 78 69 74 28 72 65 63 76 |g);....e|xit(recv|
|00000410| 53 50 6f 72 74 29 3b 0d | 09 09 65 6e 64 3b 0d 0d |SPort);.|..end;..|
|00000420| 09 62 65 67 69 6e 0d 09 | 09 69 66 20 70 61 72 61 |.begin..|.if para|
|00000430| 6d 50 74 72 5e 2e 70 61 | 72 61 6d 43 6f 75 6e 74 |mPtr^.pa|ramCount|
|00000440| 20 3c 3e 20 31 20 74 68 | 65 6e 20 46 61 69 6c 28 | <> 1 th|en Fail(|
|00000450| 27 70 61 72 61 6d 65 74 | 65 72 20 63 6f 75 6e 74 |'paramet|er count|
|00000460| 20 69 73 20 6e 6f 74 20 | 31 27 29 3b 0d 0d 09 09 | is not |1');....|
|00000470| 5a 65 72 6f 54 6f 50 61 | 73 28 70 61 72 61 6d 50 |ZeroToPa|s(paramP|
|00000480| 74 72 5e 2e 70 61 72 61 | 6d 73 5b 31 5d 5e 2c 73 |tr^.para|ms[1]^,s|
|00000490| 74 72 29 3b 09 09 7b 20 | 46 69 72 73 74 20 70 61 |tr);..{ |First pa|
|000004a0| 72 61 6d 65 74 65 72 20 | 69 73 20 70 6f 72 74 20 |rameter |is port |
|000004b0| 6e 75 6d 62 65 72 2e 20 | 7d 0d 09 09 70 6f 72 74 |number. |}...port|
|000004c0| 4e 75 6d 62 65 72 20 3a | 3d 20 53 74 72 54 6f 4e |Number :|= StrToN|
|000004d0| 75 6d 28 73 74 72 29 3b | 0d 09 09 69 66 20 28 70 |um(str);|...if (p|
|000004e0| 6f 72 74 4e 75 6d 62 65 | 72 20 3c 20 31 29 20 6f |ortNumbe|r < 1) o|
|000004f0| 72 20 28 70 6f 72 74 4e | 75 6d 62 65 72 20 3e 20 |r (portN|umber > |
|00000500| 32 29 20 74 68 65 6e 20 | 46 61 69 6c 28 27 69 6e |2) then |Fail('in|
|00000510| 76 61 6c 69 64 20 70 6f | 72 74 20 6e 75 6d 62 65 |valid po|rt numbe|
|00000520| 72 27 29 3b 0d 0d 09 09 | 69 66 20 70 6f 72 74 4e |r');....|if portN|
|00000530| 75 6d 62 65 72 20 3d 20 | 31 20 74 68 65 6e 20 69 |umber = |1 then i|
|00000540| 6e 50 6f 72 74 20 3a 3d | 20 2d 36 0d 09 09 65 6c |nPort :=| -6...el|
|00000550| 73 65 20 69 6e 50 6f 72 | 74 20 3a 3d 20 2d 38 3b |se inPor|t := -8;|
|00000560| 0d 09 09 6c 20 3a 3d 20 | 31 3b 0d 09 09 73 74 72 |...l := |1;...str|
|00000570| 5b 30 5d 20 3a 3d 20 63 | 68 72 28 31 29 3b 0d 09 |[0] := c|hr(1);..|
|00000580| 09 69 66 20 46 53 52 65 | 61 64 28 69 6e 50 6f 72 |.if FSRe|ad(inPor|
|00000590| 74 2c 6c 2c 50 74 72 28 | 6f 72 64 34 28 40 73 74 |t,l,Ptr(|ord4(@st|
|000005a0| 72 29 2b 31 29 29 20 3c | 3e 20 6e 6f 45 72 72 20 |r)+1)) <|> noErr |
|000005b0| 74 68 65 6e 20 46 61 69 | 6c 28 27 46 53 52 65 61 |then Fai|l('FSRea|
|000005c0| 64 20 66 61 69 6c 65 64 | 27 29 3b 0d 09 09 69 66 |d failed|');...if|
|000005d0| 20 6c 20 3c 3e 20 31 20 | 74 68 65 6e 20 73 74 72 | l <> 1 |then str|
|000005e0| 5b 30 5d 20 3a 3d 20 63 | 68 72 28 30 29 3b 0d 09 |[0] := c|hr(0);..|
|000005f0| 09 70 61 72 61 6d 50 74 | 72 5e 2e 72 65 74 75 72 |.paramPt|r^.retur|
|00000600| 6e 56 61 6c 75 65 20 3a | 3d 20 50 61 73 54 6f 5a |nValue :|= PasToZ|
|00000610| 65 72 6f 28 73 74 72 29 | 3b 0d 09 65 6e 64 3b 0d |ero(str)|;..end;.|
|00000620| 0d 65 6e 64 2e 0d 00 00 | 00 00 00 00 00 00 00 00 |.end....|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000690| 3b 0d 09 20 57 48 49 4c | 45 20 63 6f 6d 6d 61 6e |;.. WHIL|E comman|
|000006a0| 64 50 74 72 5e 20 3c 3e | 20 30 20 44 4f 0d 09 20 |dPtr^ <>| 0 DO.. |
|000006b0| 1a 31 2e 20 44 44 45 78 | 70 61 6e 64 45 78 70 61 |.1. DDEx|pandExpa|
|000006c0| 6e 64 54 65 6d 70 46 69 | 6c 65 20 78 02 00 00 00 |ndTempFi|le x....|
|000006d0| 00 00 44 44 54 4d 44 44 | 41 50 01 00 00 00 00 00 |..DDTMDD|AP......|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 a5 f3 ec 2a 00 00 | 05 a6 00 00 01 7e 6e 75 |.....*..|.....~nu|
|00000700| 6d 62 65 72 20 2b 20 4f | 52 44 28 63 68 29 20 2d |mber + O|RD(ch) -|
|00000710| 20 4f 52 44 28 27 30 27 | 29 3b 0d 09 09 20 63 6f | ORD('0'|);... co|
|00000720| 6d 6d 61 6e 64 50 74 72 | 20 3a 3d 20 50 6f 69 6e |mmandPtr| := Poin|
|00000730| 74 65 72 28 4f 52 44 28 | 63 6f 6d 6d 61 6e 64 50 |ter(ORD(|commandP|
|00000740| 74 72 29 20 2b 20 31 29 | 3b 0d 09 20 20 20 45 4e |tr) + 1)|;.. EN|
|00000750| 44 3b 0d 09 20 49 46 20 | 6e 75 6d 62 65 72 20 3d |D;.. IF |number =|
|00000760| 20 30 20 54 48 45 4e 20 | 6e 75 6d 62 65 72 20 3a | 0 THEN |number :|
|00000770| 3d 20 31 3b 20 20 20 7b | 20 64 65 66 61 75 6c 74 |= 1; {| default|
|00000780| 00 00 00 48 00 09 47 65 | 6e 65 76 61 00 09 54 6f |...H..Ge|neva..To|
|00000790| 20 63 6f 6d 70 69 6c 65 | 20 61 6e 64 20 6c 69 6e | compile| and lin|
|000007a0| 6b 20 74 68 69 73 00 03 | 00 04 00 29 00 03 01 dd |k this..|...)....|
|000007b0| 02 7d 00 68 00 04 01 4e | 01 f8 9d 21 15 1f 00 00 |.}.h...N|...!....|
|000007c0| 03 11 00 00 03 11 00 00 | 02 6b 01 00 00 00 01 00 |........|.k......|
|000007d0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 04 1f 20 |...L...L|...2... |
|000007e0| 06 40 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.@.....2|..MPSR..|
|000007f0| 00 0a 03 ed ff ff 00 00 | 00 00 00 05 1f 94 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+